// 引入封装好的request
import request  from "@/utils/request";
// 获取所有分类
export const getCategorizes = (data)=>{
    return request({
        url:'/categorizes/getcategorizes',
        method:'POST',
        data
    })
}
// 删除分类
export const delCategorize = (data)=>{
    return request({
        url:'/categorizes/delcategorize',
        method:'POST',
        data
    })
}
// 添加分类
export const addCategorize = (data)=>{
    return request({
        url:'/categorizes/addcategorize',
        method:'POST',
        data
    })
}
// 编辑分类
export const editCategorize = (data)=>{
    return request({
        url:'/categorizes/editcategorize',
        method:'POST',
        data
    })
}
